﻿using System;
using System.Collections.Generic;
using System.Text;

namespace lianxi02
{
    //    组长： 月薪+1000* 年限
    //经理 ：月薪+1000* 年限* 字段：基础分红1000
    //客户经理：月薪+1000* 年限+分红(基础分红*3)

    //求组长，经理的年薪。
    class Salary
    {
        public double month;
        public double age;
        public double year;
        public void Getmoney()
        {
            Console.WriteLine("月薪为{0}\n年限为{1}\n年薪{2}", month, age, year);
        }
    }
    class leader : Salary
    {
        public void Getvalue()
        {
            month = 5000;
            age = 3;
            year = (month + 1000 * age) * 12;
        }
    }
    class manager : Salary
    {
        public double money = 1000;
        public void Getvalue()
        {
            month = 8000;
            age = 5;
            year = (month + 1000 * age + 1000) * 12;
        }
    }
    class boss : Salary
    {
        public double money = 1000;
        public void Getvalue()
        {
            month = 15000;
            age = 10;
            year = (month + 1000 * age + (1000 * 3)) * 12;
        }
    }
}


